<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<ol class="breadcrumb">
    <li><a href="/Admin">首页</a></li>
    <li class="active">修改题库</li>
</ol>
<form action="/Admin/Question/modifyQuestion" method="post" enctype="multipart/form-data">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>图片：</div>
        <div class="col-lg-3">
            <image src="{$data['image']}" height="100" />
            <input type="file" name="image"  class="form-control" />
        </div>
    </div>
    <br/>
    <div class="row">
         <div class="col-lg-3 text-right"><p>标签：</p></div>
              <div class="col-lg-3">
                   <select name="tagId" class="form-control tagId">
                           <foreach name="tagList" item="vo">
                              <option value="{$vo.id}">{$vo.name}</option>
                           </foreach>
                   </select>
               </div>
         </div>
     <br/>
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>题库名称：</div>
        <div class="col-lg-3"><input type="text" name="title" value="{$data['title']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right">选项1：</div>
        <div class="col-lg-3"><input type="text" name="option1" value="{$data['option1']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right">选项2：</div>
        <div class="col-lg-3"><input type="text" name="option2" value="{$data['option2']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right">选项3：</div>
        <div class="col-lg-3"><input type="text" name="option3" value="{$data['option3']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right">选项4：</div>
        <div class="col-lg-3"><input type="text" name="option4" value="{$data['option4']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>正确答案：</div>
        <div class="col-lg-3">
             <select name="answer" class="form-control answer">
                    <option value="1">选项1</option>
                    <option value="2">选项2</option>
                    <option value="3">选项3</option>
                    <option value="4">选项4</option>                  
             </select>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>分值：</div>
        <div class="col-lg-3"><input type="text" name="score" value="{$data['score']}" class="form-control" /></div>
    </div>
    <br />
    
    <input type="hidden" name="id" value="{$data['id']}">
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<script>
$(".answer").val("{$data.answer}");
$(".tagId").val("{$data.tagId}");
</script>
<include file="./Application/Admin/View/Public/footer.html" />